package service.impl;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import service.HelloService;

@Service
public class HelloServiceImpl implements HelloService {

    @Value("Hello")
    private String greeting;

    @Override
    public String sayHello(String name) {
        return greeting+" "+name;
    }
}
